package com.xyy.saas.payment.job.openAccount;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.xyy.elasticjob.client.annotation.ElasticJobConf;
import com.xyy.saas.payment.service.job.QueryOpenAccountJobService;
import com.xyy.saas.payment.util.JSONUtils;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

//@ElasticJobConf(name = "xyy.elastic.job.manage.QueryCreatePayStatusJob", cron = "0 0,20,40 * * * ?")
@Slf4j
public class QueryCreatePayStatusJob implements SimpleJob {
    @Resource
    private QueryOpenAccountJobService queryOpenAccountJobService;

    @Override
    public void execute(ShardingContext shardingContext) {
        log.info("QueryCreatePayStatusJob#execute start queryOpenAccountJobService.queryCreatePayStatus(), shardingContext:{}", JSONUtils.toJSON(shardingContext));
        queryOpenAccountJobService.queryCreatePayStatus();
        log.info("QueryCreatePayStatusJob#execute end queryOpenAccountJobService.queryCreatePayStatus()");
    }
}
